package com.liuyucheng.generic.eraser;

import lombok.extern.slf4j.Slf4j;

import java.lang.reflect.Field;
import java.lang.reflect.Method;

@Slf4j
public class TestEraser {
    public static void main(String[] args) {
        Eraser<Integer> eraser = new Eraser<>();
        Class<? extends Eraser> clazz = eraser.getClass();
        Field[] fields = clazz.getDeclaredFields();
        for (Field field : fields) {
            log.info("name:{},type:{}",field.getName(),field.getType());
        }
        log.info("================================");

        Method[] methods = clazz.getDeclaredMethods();
        for (Method method : methods) {
            log.info("name:{},returnType:{}",method.getName(),method.getReturnType());
        }
    }
}
